<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="yourstyle.css">
</head>
<body>

   <ul class="animation">
    <button>《</button>
    <li><a href="#1">1</a></li>
    <li><a href="#2">2</a></li>
    <li><a href="#3">3</a></li>
    <li><a href="#4">4</a></li>
    <li><a href="#5">5</a></li>
    <button >》</button>
   </ul>
   <style>
    .animation{
        display: flex;
    }
   </style>
</body>
</html>